function testCalc(){
	var seed = 0;
	var c = 0;
	for(var i=0; i<100; i++) {
		var d = [];
		for(var x=0; x<4; x++){
			var seed = Math.random();
			var c = (calc(seed) * 100);	
			d.push({'x':x,'y':c});
		}
		
		g.drawLine([d]);
	}
}
function calc(inVal){
	return inVal;
}
function createNewLineGraph(){

	var g = new Vector.Graph.LineGraph({stroke: 'true',
		graphData:	[
	    		[{x:0,y:0},
				{x:1,y:75},
				{x:2,y:100},
				{x:3,y:75}],
				[{x:0,y:10},
				{x:1,y:65},
				{x:2,y:120},
				{x:3,y:100}]
				]});
	g.renderGraph('vmltest');

}
function testBox(){
	var c = Vector.VectorManager.getCanvas({parent: 'vmltest'});
	c.render();
	var g = Vector.VectorManager.getGroup({parent: c.id});
	g.render();
	var b = Vector.VectorManager.getBox({parent: g.id, text: 'hello', opt: {
		x: 0,
		y: 0,
		height: 150,
		width: 250
	}});
	b.render();
	var nl = Vector.VectorManager.getLine({parent: g.id, opt:{
		fromx: '0',
		fromy: '0',
		tox: '50',
		toy: '50',
		height: 150,
		width: 250
	}});
	nl.render();
	
	var p = new Vector.VectorManager.getPoly({
		parent: g.id,
		opt: {
			points: "0,0 25,10 50,25 100,40 ",
			stroke: Vector.util.randomColorString()
		}
	});
	
	p.render();
	
//	var nc = Vector.VectorManager.getCanvas({parent: 'vmltest'});
//	nc.render();
//	var l = Vector.VectorManager.getLine({parent: nc.id, opt:{
//		fromx: '0px',
//		fromy: '0px',
//		tox: '50px',
//		toy: '50px'
//	}});
//	l.render();
}
//* id optional
//	 * strokecolor: 'steelblue',
//	 * strokeweight: '1px',
//	 * fromx:this.mainX,
//	 * fromy:this.mainY,
//	 * tox:this.lengthX,
//	 * toy:this.mainY
function testLines(){
//	Ext.log();
	var g = Vector.VectorManager.getGroup({parent:'vmltest'});
	g.render();
	var l = Vector.VectorManager.getLine({parent:g.id});
	l.addItems([{fromx:0,fromy:0,tox:150,toy:150,strokewidth:2,stroke:Vector.util.randomColorString()},
			{fromx:0,fromy:0,tox:50,toy:150,strokewidth:2,stroke:Vector.util.randomColorString()},
			{fromx:0,fromy:0,tox:150,toy:50,strokewidth:2,stroke:Vector.util.randomColorString()},
			{fromx:0,fromy:0,tox:75,toy:20,strokewidth:2,stroke:Vector.util.randomColorString()},
			{fromx:0,fromy:0,tox:100,toy:200,strokewidth:2,stroke:Vector.util.randomColorString()}]);
	l.renderAll();
	var b = new Vector.VectorManager.getBox({parent:g.id});
	b.addItems([{height:300,width:200},{height:100,width:400}]);
	b.renderAll();
	var rb = new Vector.VectorManager.getRoundBox({parent:g.id});
	rb.addItems([{height:400,width:200,rx:60},{height:100,width:500,rx:40}]);
	rb.renderAll();
	var p = new Vector.VectorManager.getPoly({parent:g.id});
	p.addItems([{pts:"0 0 25 10 50 25 100 40 ",stroke:Vector.util.randomColorString()},{pts:"10 10 25 20 50 35 100 60 ",stroke:Vector.util.randomColorString()}]);
	p.renderAll();
}
